<%--
  Created by IntelliJ IDEA.
  User: Jiang Tao
  Date: 2017/2/15
  Time: 9:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<script type="text/javascript">
    var uri = 'dictionaries/data/DictionariesTask.shtml';
    var dat = ${dataList};
    $(function () {
        $('#dictionariesTask-datagrid').datagrid({
            showToolbar: true,
            local: 'local',
            toolbarItem:'add',
            dataType: 'json',
            dataUrl: uri,
            data: dat,
            sortAll: true,
            filterAll: true,
            columns: [
                {
                    name: 'id',
                    label: 'Id',
                    align: 'center',
                    width: 30,
                    hide:true,
                    edit: false
                },
                {
                    name: 'name',
                    label: '名称',
                    align: 'center',
                    rule:'required;chinese',
                    width: 70,
                    edit: true
                }],
            editUrl: 'dictionaries/update/DictionariesTask.shtml',
            paging: false,
            showCheckboxCol: true,
            linenumberAll: true,
            fullGrid: true,
            filterThead: false,
            delUrl: 'dictionaries/delete/DictionariesTask.shtml',
            delPK: 'id',
            showEditCol: true,
            height: 350
        });


    });

    $(function () {
        displayEditCol(true);
    })

    function displayEditCol(flag) {
        $('#dictionariesTask-datagrid').datagrid('showEditCol', flag)
    }

</script>
<div class="bjui-pageHeader"
     style="height: auto; padding-top: 7px; padding-bottom: 7px;text-align: center;">
    <h5><b>任务类型管理</b></h5>
</div>
<div class="bjui-pageContent tableContent" id="contentList">
    <div style="margin:0px;">
        <table id="dictionariesTask-datagrid" data-width="400px" data-height="400" class="table table-bordered">
        </table>
    </div>
</div>

